/*    */ package com.newcrm.webapi.sub;
/*    */ 
/*    */ import com.newcrm.bean.User;
/*    */ import com.newcrm.db.DealFieldManager;
/*    */ import com.newcrm.exception.DBException;
/*    */ import com.newcrm.exception.NotFoundException;
/*    */ import com.newcrm.webapi.AbstractAction;
/*    */ import com.newcrm.webapi.AbstractHttpServlet;
/*    */ import java.io.IOException;
/*    */ import java.sql.SQLException;
/*    */ import java.util.List;
/*    */ import javax.servlet.RequestDispatcher;
/*    */ import javax.servlet.ServletException;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ import org.apache.log4j.Logger;
/*    */ 
/*    */ public class ShowNewDeal extends AbstractAction
/*    */ {
/* 24 */   private static Logger logger = Logger.getLogger(ShowNewDeal.class.getName());
/*    */ 
/*    */   public ShowNewDeal(AbstractHttpServlet servlet) {
/* 27 */     super(servlet);
/*    */   }
/*    */ 
/*    */   public void parse(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, NotFoundException
/*    */   {
/* 32 */     User user = super.getLoginUser(request);
/*    */ 
/* 34 */     DealFieldManager manager = new DealFieldManager();
/*    */     try {
/* 36 */       List fields = manager.list(user.companyId);
/* 37 */       request.setAttribute("fields", fields);
/*    */     } catch (DBException e) {
/* 39 */       logger.warn("get deal customer filed info failed", e);
/*    */     } catch (SQLException e) {
/* 41 */       logger.warn("get deal customer filed info failed", e);
/*    */     }
/*    */ 
/* 44 */     request.getRequestDispatcher("/deal_new.jsp")
/* 45 */       .forward(request, response);
/*    */   }
/*    */ }

/* Location:           C:\E\referenceProject\CRM参考\qikebao\WEB-INF\lib\qikebao.jar
 * Qualified Name:     com.newcrm.webapi.sub.ShowNewDeal
 * JD-Core Version:    0.6.1
 */